﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NSRE.Math;



namespace Mosos
{
    // IA debile - pour l'example
    class AI_roux_b: AI_interface
    {
        NSRE.Time.Stopclock clock;
        Random rand;
        public AI_roux_b()
        {
            clock = new NSRE.Time.Stopclock();
            rand = new Random();
            clock.Start();
        }

        public void take_decision(Cell_interface[] them, Cell me)
        {
            if (clock.Enlapsed > 0.5)
            {
                float max_force = 600;
                float max_force_2 = 300;
                Vector2 force = new Vector2((float)rand.NextDouble() * max_force - max_force_2, (float)rand.NextDouble() * max_force - max_force_2);
                me.push(force);
                clock.Stop();
                clock.Start();
            }
        }
        public string get_path_image()
        {
            return "texture.png";
        }

    }
}
